//求n的k次方
#include <stdio.h>

int my_pow(int n, int k)
{
    if(k == 1)
    return n;
    else 
    return n*my_pow(n, k-1);
}

int main()
{
    int n = 0;
    int k = 0;
    scanf("%d%d", &n, &k);
    printf("%d", my_pow(n, k));
    return 0;
}